package com.woniuxy.controller;

import com.woniuxy.entity.ClassRoom;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author 佘赛飞
 * @create 2021-11-18 5:54 下午
 */
@Controller
@RequestMapping("room")
public class ClassRoomController {
    @RequestMapping("/addClassRoom")
    public ModelAndView addClassRoom(ClassRoom classRoom){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("classRoom","传入的多对多"+classRoom);
        modelAndView.setViewName("manyToManyView");
        return modelAndView;

    }
}
